package com.jxd.project.menu.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ClassName GoodsLog
 * @Description TODO
 * @Author 刘成
 * @Date 2025/9/25 14:29
 * @Version 1.0
 */
@Data
@TableName("goodslog")
public class GoodsLog {
    @TableId("logid")
    private int logId;
    @TableField("goodsid")
    private int goodsId;
    @TableField("goodschangenum")
    private int goodsChangeNum;
    @TableField("goodschangetype")
    private String goodsChangeType;
    @TableField("goodschangetime")
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private LocalDate goodsChangeTime;
    @TableField("goodschangereason")
    private String goodsChangeReason;
    @TableField("loggedempno")
    private int loggedEmpNo;
//    @TableField("loggedename")
    @TableField(exist = false)
    private String loggedEName;
//    @TableField("goodsname")
    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private String warehouseName;

    public GoodsLog() {
    }
}
